<?php
$q = strtolower($_GET["q"]);
//$table=strtolower($_REQUEST["table"]);
if (!$q) return;
require_once("konfiguration.html");
//define ( 'MYSQL_HOST', 'localhost' );
//define ( 'MYSQL_USER', 'dbu1153130' );
//define ( 'MYSQL_PASSWORD', 'testokI040336' );
//define ( 'MYSQL_DATABASE', 'db1153130-testdb2' );
//mysql_connect (MYSQL_HOST, MYSQL_USER, MYSQL_PASSWORD);
mysql_select_db( MYSQL_DATABASE );
mysql_query('SET NAMES utf8');
mysql_query('SET CHARACTER SET utf8');
if (strlen($q)<=2)$search=$q.'%';
else $search='%'.$q.'%';
$search='%'.$q.'%';
$result=mysql_query("SELECT listname FROM vocable_lists WHERE listname like '$search' ORDER BY listname LIMIT 20");
while ($row=mysql_fetch_array($result))
{
   print $row[0]."\n";
}

?>